﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Equivalencias.aspx.cs" Inherits="Web.Equivalencias" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div width="100%">
          <asp:Panel ID="Panel_Equivalencias" runat="server" BackColor="White" width="100%">
              <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" 
                Font-Size="XX-Large" ForeColor="Silver" CssClass="font-family">Equivalencias</asp:HyperLink>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <asp:Image ID="Banner" runat="server" ImageUrl="~/IMG/Banner.jpg" />
              &nbsp;<asp:Panel ID="Panel2" runat="server" BackColor="#E8E8E8" width="100%">
                <table width="100%">
                    <tr>
                        <td align="left">
                            <asp:Label ID="Lbl_Producto" runat="server" class="lbl" Text="Nro Equivalencia"></asp:Label>
                        </td>
                        <td  align="left">
                             <asp:Label ID="lbl_Producto1" runat="server" class="lbl" Text=" "></asp:Label>
                        </td>
                        <td align="left">
                            <asp:Button ID="Btn_Aprobar" runat="server" CssClass="save"
                                OnClick="Btn_Aprobar_Click" Visible="true" />
                            <asp:Button ID="btnNuevo" runat="server" CssClass="new" 
                                    onclick="btnNuevo_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                        <asp:Label ID="Lbl_Producto_Origen" runat="server" class="lbl" Text="Valor"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="Txt_Producto_Origen" runat="server" Width="192px"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td align="left">
                        <asp:Label ID="Lbl_Producto_Pistola" runat="server" class="lbl" Text="Equivale a"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="Txt_Producto_Pistola" runat="server" Width="192px"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td align="left">
                            &nbsp;</td>
                        <td align="left">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
                <div style="Width:100%;overflow:auto;">
                
                    <asp:GridView ID="GridView_Equivalencias" runat="server" 
                        AutoGenerateColumns="False" BorderColor="#E0040B" BorderStyle="Ridge" 
                        BorderWidth="5px" EnableModelValidation="True" Height="165px" 
                        OnRowCommand="GridView_Equivalencias_RowCommand" 
                        onselectedindexchanged="GridView_Equivalencias_SelectedIndexChanged" 
                        style="margin-top: 0px" Width="100%">
                        <HeaderStyle BackColor="#343434" ForeColor="White" />
                        <AlternatingRowStyle BackColor="silver" />
                        <Columns>
                            <asp:TemplateField FooterText="Bodega" HeaderText="Codigo">
                                <ItemTemplate>
                                    <asp:Label ID="Label7" runat="server" class="lbl" 
                                        Text='<%# Bind("EQUIV_ID") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="Producto Origen" HeaderText="Producto Origen">
                                <ItemTemplate>
                                    <asp:Label ID="Label8" runat="server" class="lbl" 
                                        Text='<%# Bind("ID_PRODUCTO1") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="Producto Pistoleado" 
                                HeaderText="Producto Pistoleado">
                                <ItemTemplate>
                                    <asp:Label ID="Label9" runat="server" class="lbl" 
                                        Text='<%# Bind("ID_PRODUCTO2") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Wrap="true" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="Edicion" HeaderText="Accion">
                                <ItemTemplate>
                                    <asp:ImageButton ID="Btn_Edit" runat="server" AlternateText="Editar" 
                                        CommandName="Select" ImageUrl="~/img/edit.gif" />
                                    <asp:ImageButton ID="Btn_Delete" runat="server" AlternateText="Eliminar" 
                                        CommandName="Eliminar" CommandArgument='<%# Bind("EQUIV_ID") %>' ImageUrl="~/img/delete.gif" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                
                </div> 
            </asp:Panel>
        </asp:Panel>
    </div>
</asp:Content>

